import { VirtualItem } from "./VirtualList/VirtualList";

const { ccclass, property, disallowMultiple, menu } = cc._decorator;



/** 虚拟列表Item */
@ccclass @disallowMultiple @menu('测试案例/Item')

export class Item extends VirtualItem {


    @property(cc.Label)
    label: cc.Label = null;


    //-------------------------------------------



    dataUpdateChange(data: string, i: number, source: string[]) {
        this.label.string = 'item ' + data;
    }


}